package com.testjpa.web;

import com.alibaba.fastjson.JSON;
import com.ccclient.config.MyConfigProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者: LCG
 * 日期: 2020/5/22 17:45
 * 描述:
 */
@RestController
public class ConfigClientController {

    @Autowired
    private MyConfigProperties myConfigProperties;

    @RequestMapping("test01")
    public String test(){
        System.out.println("===================>"+JSON.toJSONString(myConfigProperties));
        return JSON.toJSONString(myConfigProperties);
    }


}
